package cn.tx.service.Impl;

import cn.tx.dao.BooksDao;
import cn.tx.dao.ClazzDao;
import cn.tx.model.Books;
import cn.tx.model.Clazz;
import cn.tx.service.BooksService;
import cn.tx.service.ClazzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class BooksServiceImpl implements BooksService{

    @Autowired
    private BooksDao booksDao;

    @Override
    public int addBooks(Books books) {
        return booksDao.addBooks(books);
    }

    @Override
    public List<Books> findList(Map<String, Object> querymap) {
        return booksDao.findList(querymap);
    }

    @Override
    public List<Books> findAll() {
        return booksDao.findAll();
    }

    @Override
    public int findTotal(Map<String, Object> querymap) {
        return booksDao.findTotal(querymap);
    }

    @Override
    public int UpdateBooksById(Books books) { return booksDao.UpdateBooksById(books);
    }

    @Override
    public int delete(String ids) {
        return booksDao.delete(ids);
    }
}
